<template>
	<div class="system-sso">
		<div class="main">
			<iframe :src="frameSrc" frameborder="0" width="100%" height="100%"></iframe>
		</div>
	</div>
</template>

<script>
	export default {
		
		data() {
			return {
				frameSrc : ''
			}
		},
		created() {
			let eiipToken = sessionStorage.getItem('eiip-token');
			let ssoToken = sessionStorage.getItem('sso-token');
			// this.frameSrc = `http://172.16.15.196:7070/#/ssoLogin?eiipToken=${eiipToken}&ssoToken=${ssoToken}`
			this.frameSrc = `${API.SSO_ADMIN}?eiipToken=${eiipToken}&ssoToken=${ssoToken}`
		}
	}
</script>

<style lang="scss" scoped>
	.system-sso {
		height: calc(100vh - 80px);
		background: #f8f8f8;
	
		.main {
			height: 100%;
			background-color: white;
			overflow-y: hidden;
			box-sizing: border-box;
			position: relative;
		}
	}
</style>
